import request from "@/utils/request";

/**
 * 普通用户接口
 */



// 重置用户密码
export const resetPwd = (userId) => {
  return request({
    method: "PUT",
    url: `/commonUser/resetPwd/${userId}`,
  });
};

// 修改账号状态
export const changeStatus = (userId, status) => {
  return request({
    method: "PUT",
    url: `/commonUser/${userId}/${status}`,
  });
};

// 删除用户
export const deleteUser = (userId) => {
  return request({
    method: "DELETE",
    url: `/commonUser/${userId}`,
  });
};

// 分页查询会员列表。实现了搜索功能
export const pagingQuery = (params) => {
  return request({
    method: "GET",
    url: "/commonUser/pagingQuery",
    params
  })
}